package com.zerox.mapper;

import com.zerox.pojo.Supplier;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SysSupplierMapper {

    List<Supplier> list(@Param("startIndex")Integer startIndex,@Param("pageSize") Integer pageSize);
    @Select("select count(*) from t_supplier")
    Integer count();

    int add(Supplier supplier);

    Supplier selectById(Integer id);

    int delete(Integer id);

    int update(Supplier supplier);

    Supplier selectBysupCode(String supCode);

    Supplier selectId(Integer id);
}
